
import React from 'react'

const Home=React.lazy(()=>import('../pages/Home'))

const Article = React.lazy(() => import('../pages/headline/Article'))       /* 文章 */
const Archives = React.lazy(() => import('../pages/headline/Archives'))     /* 归档 */
const Knowledge = React.lazy(() => import('../pages/headline/Knowledge'))   /* 知识小册 */
const Msgboard = React.lazy(() => import('../pages/headline/Msgboard'))    /* 留言板 */
const About = React.lazy(() => import('../pages/headline/About'))          /* 关于 */

const All = React.lazy(() => import('../pages/headline/category/All'))      /* 所有 */
const Fe = React.lazy(() => import('../pages/headline/category/Fe'))       /* 前端 */
const Be = React.lazy(() => import('../pages/headline/category/Be'))        /* 后端 */
const Reading = React.lazy(() => import('../pages/headline/category/Reading'))   /* 阅读 */
const Linux = React.lazy(() => import('../pages/headline/category/Linux'))     /* linux */
const Leetcode = React.lazy(() => import('../pages/headline/category/Leetcode'))  /* Leetcode */
const News = React.lazy(() => import('../pages/headline/category/News'))      /* News */


let routeList = [
    {to:'/home',from:'/'},
    {path:'/home',component:Home,children:[
        {to:'/home/article',from:'/home'},
        {path:'/home/article',name:'文章',component:Article,children:[
            {to:"/home/article/all",from:'/home/article'},
            {path:'/home/article/all',name:'所有',component:All},
            {path:'/home/article/fe',name:'前端',component:Fe},
            {path:'/home/article/be',name:'后端',component:Be},
            {path:'/home/article/reading',name:'阅读',component:Reading},
            {path:'/home/article/linux',name:'linux',component:Linux},
            {path:'/home/article/leetcode',name:'leetcode',component:Leetcode},
            {path:'/home/article/news',name:'要闻',component:News},
        ]},
        {path:'/home/archives',name:'归档',component:Archives},
        {path:'/home/knowledge',name:'知识小册',component:Knowledge},
        {path:'/home/msgboard',name:'留言板',component:Msgboard},
        {path:'/home/about',name:'关于',component:About},
    ]}
]
export default routeList